﻿using System;
using System.Collections.Generic;
using System.Text;
using System.IO;

namespace SuperHardSum
{
    class Program
    {
        static void Main(string[] args)
        {
            TextReader reader = Console.In;
            string allText = reader.ReadToEnd();

            string[] lines = allText.Split('\n');

            foreach (string line in lines)
            {
                string[] numbers = line.Split(' ');
                Int64 total = 0;

                foreach (string number in numbers)
                {
                    Int64 temp = 0;
                    if ((Int64.TryParse(number, out temp)) == true)
                    {
                        total += temp;
                    }
                }

                Console.WriteLine(total.ToString());
            }
        }
    }
}
